package com.security.securitydemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller()
public class UserController {

    @ResponseBody
    @RequestMapping("/userTest")
    public String userTest() {
        return "Hello Spring Security";
    }


    @RequestMapping("/loginPage")
    public String userLogin() {
        return "userLogin";
    }

    @RequestMapping("/userIndex")
    public String userIndex() {
        return "loginSucceed";
    }

    @RequestMapping("/loginSucceedController")
    public String loginSucceedController() {
        return "loginSucceed";
    }

    @RequestMapping("/loginErrorController")
    public String loginErrorController() {
        return "loginError";
    }


}
